package io.coderyeah;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@MapperScan("io.coderyeah.*.mapper")
@SpringBootApplication
@EnableTransactionManagement
@EnableAspectJAutoProxy // 开启aop自动代理
@ServletComponentScan("io.coderyeah.system.listener")//监听器扫描包
public class PetHomeApplication {
    public static void main(String[] args) {
        SpringApplication.run(PetHomeApplication.class, args);
    }
}
